<!doctype html>
<html lang="en">
<head>
  <style>
    .wrapper {
      width: 500px;
      margin: 30px auto;
    }
    .loading {
      background: #f0f0f0;
      text-align: center;
      padding: 100px 30px;
    }
  </style>
  <meta charset="utf-8">
  <link href="../index.css" rel="stylesheet">
  <!-- <script type="module" src="../dist/index.esm.js"></script> -->
  <script type="module" src="https://unpkg.com/@github/image-crop-element@latest/dist/index.esm.js"></script>
  <title>image-crop-element demo</title>
</head>
<body>
  <image-crop src="../ams.jpg" class="wrapper" tabindex="0">
    <div data-loading-slot class="loading">loading</div>
    <input type="text" data-image-crop-input="x" name="x" size="4" aria-label="x">
    <input type="text" data-image-crop-input="y" name="y" size="4" aria-label="y">
    <input type="text" data-image-crop-input="width" name="width" size="4" aria-label="width">
    <input type="text" data-image-crop-input="height" name="height" size="4" aria-label="height">
  </image-crop>
</body>
</html>
